<%@ include file="sites/ad_header.jsp" %>
<%
	if(session.getAttribute("user") ==null){
		response.sendRedirect("LoadIndex.jsp");
	}
%>
		<%
			String error=request.getParameter("error");
			if(error !=null){
				out.println(error);
			}else{
				error="";
				out.println(error);
			}
		%>		
	<div id="error"></div>
	<form action="./add_new_author.article" method="post" onsubmit="return validateRegister();">
		Firstname : <input type="text" name="authorfname" placeholder="Firstname"/><br/>
		<p></p>
		Lastname  : <input type="text" name="authorfname" placeholder="Lastname"/><br/>
		<p></p>
		Gender :<select name="authorgender">
			<option value="0">Female</option>
			<option value="1">Male</option>
		</select><br/>
		<p></p>
		Email Address	  : <input type="text" name="authoremail" placeholder="Email Address"/><br/>
		<p></p>
		Contact Phone<input type="text" name="authorphone" placeholder="Contact Phone"/><br/>
		<p></p>
		Username : <input type="text" name="username"/><br/>
		<p></p>
		Password : <input type="password" name="userpwd"/><br/>
		<p></p>
		Confirm Password : <input type="password" name="usercpwd"/><br/>
		<p></p>
		<input type="submit"  value="Register Author"/><br/>
	</form>
</body>
</html>